#ifndef _SERVER_H_
#define _SERVER_H_

#define forever	for(;;)

#define _WRITELOCK_ "fish.WRITELOCK"
#define _SERVER_ 1
#define _CLIENT_ !SERVER

enum
{
	S_OK, S_BAD_OPEN, S_NO_ROOM, S_BAD_RD,
	S_NOT_OPENED, S_NUM_ERRORS
};

extern Comm comm;

int start_session(commType com, char * host, char * port);
int checkDB(char * dbName);
void siginthandler(int sig);



#endif

